<div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>
                        <span><vc:i18n name="查询条件" namespace="auditEnterCommunityManage"></vc:i18n></span>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
                                v-on:click="_moreCondition()">
                            {{auditEnterCommunityManageInfo.moreCondition == true?'隐藏':'更多'}}
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-3">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请输入商户名称','auditEnterCommunityManage')"
                                       v-model="auditEnterCommunityManageInfo.conditions.name" class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请输入小区名称','auditEnterCommunityManage')"
                                       v-model="auditEnterCommunityManageInfo.conditions.communityName"
                                       class=" form-control">
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <select class="custom-select"
                                    v-model="auditEnterCommunityManageInfo.conditions.auditStatusCd">
                                <option selected value="">{{vc.i18n('请选择审核状态','auditEnterCommunityManage')}}</option>
                                <option value="1000">{{vc.i18n('未审核','auditEnterCommunityManage')}}</option>
                                <option value="1100">{{vc.i18n('审核通过','auditEnterCommunityManage')}}</option>
                                <option value="1200">{{vc.i18n('审核未通过','auditEnterCommunityManage')}}</option>
                            </select>
                        </div>
                        <div class="col-sm-2">
                            <button type="button" class="btn btn-primary btn-sm"
                                    v-on:click="_queryEnterCommunityMethod()">
                                <i class="fa fa-search"></i>
                                <span><vc:i18n name="查询" namespace="auditEnterCommunityManage"></vc:i18n></span>
                            </button>
                            <button type="button" class="btn btn-primary btn-sm"
                                    v-on:click="_resetEnterCommunityMethod()">
                                <i class="fa fa-repeat"></i>
                                <span><vc:i18n name="重置" namespace="auditEnterCommunityManage"></vc:i18n></span>
                            </button>
                        </div>
                    </div>
                    <div class="row" v-if="auditEnterCommunityManageInfo.moreCondition == true">
                        <div class="col-sm-3">
                            <select class="custom-select"
                                    v-model="auditEnterCommunityManageInfo.conditions.memberTypeCd">
                                <option selected value="">{{vc.i18n('请选择商户类型','auditEnterCommunityManage')}}</option>
                                <option value="390001200002">{{vc.i18n('物业公司','auditEnterCommunityManage')}}</option>
                                <option value="390001200003">{{vc.i18n('代理商','auditEnterCommunityManage')}}</option>
                            </select>
                        </div>
                        <div class="col-sm-4">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请输入联系电话','auditEnterCommunityManage')"
                                       v-model="auditEnterCommunityManageInfo.conditions.tel" class=" form-control">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <span><vc:i18n name="商户审核" namespace="auditEnterCommunityManage"></vc:i18n></span>
                    </h5>
                    <div class="ibox-tools" style="top:10px;"></div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                        <tr>
                            <th class="text-center">
                                <span><vc:i18n name="小区" namespace="auditEnterCommunityManage"></vc:i18n></span>ID
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="小区名称" namespace="auditEnterCommunityManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="商户名称" namespace="auditEnterCommunityManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="商户类型" namespace="auditEnterCommunityManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="联系电话" namespace="auditEnterCommunityManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="商户地址" namespace="auditEnterCommunityManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="起始时间" namespace="auditEnterCommunityManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="结束时间" namespace="auditEnterCommunityManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="创建时间" namespace="auditEnterCommunityManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="状态" namespace="auditEnterCommunityManage"></vc:i18n></span>
                            </th>
                            <th class="text-center">
                                <span><vc:i18n name="操作" namespace="auditEnterCommunityManage"></vc:i18n></span>
                            </th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr v-for="community in auditEnterCommunityManageInfo.communitys">
                            <td class="text-center">{{community.communityId}}</td>
                            <td class="text-center">{{community.name}}</td>
                            <td class="text-center">{{community.storeName}}</td>
                            <td class="text-center">{{community.storeTypeName}}</td>
                            <td class="text-center">{{community.tel}}</td>
                            <td class="text-center">{{community.address}}</td>
                            <td class="text-center">{{community.startTime}}</td>
                            <td class="text-center">{{community.endTime}}</td>
                            <td class="text-center">{{community.createTime}}</td>
                            <td class="text-center">{{community.stateName}}</td>
                            <td class="text-center">
                                <div class="btn-group" v-if="community.auditStatusCd=='1000'">
                                    <button class="btn-white btn btn-xs"
                                            v-on:click="_openEnterAuditCommunityModal(community)">
                                        <span><vc:i18n name="审核" namespace="auditEnterCommunityManage"></vc:i18n></span>
                                    </button>
                                </div>
                                <!--v-on:click="_openEnterAuditCommunityModal(community)"-->
                                <div class="btn-group" v-if="community.auditStatusCd!='1000'">
                                    <button class="btn-white btn btn-xs"
                                            v-on:click="_openRecallAuditFinishCommunityModal(community)">
                                        <span>
                                            <vc:i18n name="撤回审核" namespace="auditEnterCommunityManage"></vc:i18n>
                                        </span>
                                    </button>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                        <tfoot>
                        <tr>
                            <td colspan="11">
                                <ul class="pagination float-right"></ul>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="common/audit" callBackListener="auditEnterCommunityManage" callBackFunction="notifyAuditInfo">
    </vc:create>
    <!--撤回审核-->
    <vc:create path="common/recallAuditEnterFinishCommunity"></vc:create>
</div>
